<?php
/**
* 版面显示模板
* $Id: banmian.php 167 2010-05-12 11:53:22Z bwanglei $
*/

include_once(BASE_PATH.TEMP_DIR.'/header.php');
include_once(BASE_PATH.TEMP_DIR.'/header_b.php');
?>
<div id="content_b">
	<div class="width_full overflow_hidden">
		<div class="sided float_left"><a href="<?php echo $apf_settings['base_url'];?>/root/add_thread.php?tid=<?php echo $_GET['id'];?>">发表新帖子</a></div>

		<div class="float_right sided"><a href="<?php echo apf_full_url('type','start','type');?>">进入精华区</a></div>
		<div class="float_right sided daohang_banmian"><a href="<?php echo apf_full_url(false,false,'type');?>">进入普通主题</a></div>
	</div>
	<table width="100%" border="1px"><tr class="font_bold">
		<td>标题</td>
		<td>最后发表</td>
		<td>帖子个数</td>
		<td>浏览次数</td>
	</tr>
	<?php
	foreach ($threads as $thread) {
	?>
	<tr>
		<td>
			<a class="font_bold" href="<?php echo $apf_settings['base_url'].'/thread.php?t_id='.$thread['id'];?>"><?php echo $thread['title'];?></a>
			<br />
			作者：<?php echo $thread['username']; ?>
		</td>
		<td>
			最后发表：<?php echo date('H:i:s m-d Y年', $thread['article_time_date']);?><br />
			作者：<a href="<?php echo $apf_settings['base_url'].'/thread.php?t_id='.$thread['id'];?>"><?php echo $thread['username'];?></a>
		</td>
		<td><?php echo $thread['article_count'];?></td>
		<td>
			<?php echo $thread['count_read'];?>
		</td>
	</tr>
	<?php
	}
	?>
</table>
<?php include_once('footer.php');?>
